//采购订单
app.controller('linePurchaseOrderDetailController', ['$scope', 'linePurchaseService', '$stateParams', function ($scope, linePurchaseService, $stateParams) {

    $scope.data = {
        purchaseOrderId: $stateParams.id,
        page: $stateParams.page
    }

    //获取采购单详情 返回订单列表
    function detail(data) {
        linePurchaseService.detail(data).then(function (result) {
            $scope.data = result
            console.log(result);
        })
    }
    detail($scope.data);
}]);